<?php
class Mageex_AdvanceSeo_SitemapController extends  Mage_Adminhtml_Controller_Action
{
   public function indexAction()
	{
		try{	
			$id = $this->getRequest()->getParam('sitemap_id');		
			$obj = Mage::getModel('advanceseo/submit');
			$msg = $obj->submit($id);
			Mage::getSingleton('adminhtml/session')->addSuccess($msg);
		}catch(Exception $e){
			Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
		}
		$this->_redirectReferer();
	}
}
